﻿@using Colorful.Models;
@model AppUser
<div class="am-g page">
    <form id="profile_form" action="@ViewBag.SubmitUrl" class="am-form am-form-h box" enctype="multipart/form-data" style="position:relative;padding:10px 8px;border:0;box-shadow:none">
        <input type="hidden" name="Id" id="user_id" value="0" />
        <input type="text" style="visibility:hidden;width:1px;height:0;" />
        <input type="password" style="visibility:hidden;width:1px;height:0;" />
        <div class="am-form-group">
            <label for="user_loginId" class="am-u-sm-2 am-form-label">登录账号</label>
            <div class="am-u-sm-10"><input type="text" value="@Model.LoginId" disabled /></div>
        </div>
        <div class="am-form-group">
            <label for="Nickname" class="am-u-sm-2 am-form-label">昵称</label>
            <div class="am-u-sm-10"><input type="text" name="Nickname" id="Nickname" value="@Model.Nickname" required /></div>
        </div>
        <div class="am-form-group">
            <label for="user_password" class="am-u-sm-2 am-form-label">密码<em>*</em></label>
            <div class="am-u-sm-10"><input type="password" name="Password" id="user_password" required /></div>
        </div>
        <div class="am-form-group">
            <label for="ConfirmPassword" class="am-u-sm-2 am-form-label">确认密码<em>*</em></label>
            <div class="am-u-sm-10"><input type="password" name="ConfirmPassword" id="ConfirmPassword" data-v-equalto="#user_password" /></div>
        </div>
        <div class="am-text-center">
            <input type="submit" value="更新信息" class="am-btn am-btn-primary" />
        </div>
    </form>
</div>
@section script {
<script type="text/javascript">
    $('#profile_form').asyncSubmit(function (result) {
            alert("更新成功！");
     });
</script>
}